package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.domain.ServeSync;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeSyncUpdateReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.util.List;

/**
 * <p>
 * 服务表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-07-10
 */
public interface IServeService extends IService<Serve> {
   public PageResult<ServeResDTO> findByPage(ServePageQueryReqDTO reqDTO);

   void add(List<ServeUpsertReqDTO> dtoList);

   void deleteById(Long id);

   void onSale(Long id);

   void offSale(Long id);

   void onHot(Long id);

   void offHot(Long id);
}
